package org.bayareadiplomacy.tournamatic.model

import scala.collection.mutable.Set;

class Tournament(var name: String, var variant: Variant) {
	val attending = Set[Person]()

	val rounds = Set[Round]()
 
	def addPerson(person: Person) { attending += person }
  
    def removePerson(person: Person) { attending -= person }

    def createRound(roundName: String):Round = { 
      val round = new Round(this, roundName)
      rounds += round;
      round
    }
    
    def removeRound(round: Round) {
      rounds -= round
    }
 
}
